﻿using CoreShop.Model.UI;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    public class FoodInfoModel
    {
        /// <summary>
        /// 序列
        /// </summary>
        public Int64 id { get; set; }

        /// <summary>
        /// 分类Id
        /// </summary>
        public Int64 foodTypeId { get; set; }

        /// <summary>
        /// 商品编码
        /// </summary>
        public String number { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public String name { get; set; }

        /// <summary>
        /// 是否多规格
        /// </summary>
        public bool specFlag { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public String specName { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public String pinYin { get; set; }

        /// <summary>
        /// 零售价
        /// </summary>
        public System.Decimal posPrice { get; set; }


        /// <summary>
        /// 会员价
        /// </summary>
        public System.Decimal vipPrice { get; set; }

        public System.String image { get; set; }
    }

    public class FoodSpecModel
    {
        /// <summary>
        /// 序列
        /// </summary>
        public Int64 foodSpecId { get; set; }


        /// <summary>
        /// 商品名称
        /// </summary>
        public String specName { get; set; }


        /// <summary>
        /// 零售价
        /// </summary>
        public System.Decimal posPrice { get; set; }


        /// <summary>
        /// 会员价
        /// </summary>
        public System.Decimal vipPrice { get; set; }
    }

    public class FoodTypeModel
    {
        /// <summary>
        /// 序列
        /// </summary>
        public Int64 id { get; set; }


        /// <summary>
        /// 商品名称
        /// </summary>
        public String name { get; set; }

        /// <summary>
        /// 商品列表
        /// </summary>
        public List<FoodInfoModel> foodList { get; set; }
    }
}
